package com.wbf.zuoye.demo1;

public class Test1 {
    public static void main(String[] args) {
        /**
         * 电视机
         */
        Tel t = new Tel();
        t.brand = "小米";
        t.model = "MaxPro";
        t.color = "红色";
        t.price = "8888";
        t.screenSize="33寸";
        t.resolutionRatio="3960";
        System.out.println(t.brand + t.model + t.color + t.price + "元"+t.screenSize + t.resolutionRatio);
        /**
         * 冰箱
         */
        Fridge f = new Fridge();
        f.brand = "格力";
        f.model = "MaxPro";
        f.color = "白色";
        f.price = "6668";
        f.door="横开";
        f.method="爆冷";
        System.out.println(f.brand + f.model + f.color + f.price + "元"+f.door+f.method);

        /**
         * 洗衣机
         */
        Machine m = new Machine();
        m.brand="LG";
        m.model="Pro";
        m.color="白色";
        m.price="9999";
        m.motorType="神力";
        m.wash="16KG";
        System.out.println(m.brand+m.model+m.color+m.price+"元"+m.motorType+m.wash);
    }
}
